package org.link.bean;

/**
 * 
 * project_name:forumweb
 * package_name:org.link.bean
 * file_name:User.java
 * @author Link
 * create_date:2015年10月22日 上午9:48:52
 * modified_date:
 * description: 用户实体类
 *
 */
public class User {

	private int id;				//用户id号
	private String email;		//注册邮箱
	private String pass;		//密码
	private String photo;		//图片头像路径
	private String question;	//密保问题
	private String answer;		//密保答案
	private int point;			//积分
	private String regtime;		//注册时间
	private int currentTank;	//当前排名
	private int lastTank;		//上次排名
	private String profession;	//职业
	private String sex;			//性别
	private String birthdate;	//出生日期
	private String ip;			//上次登录IP地址
	private int onlineTime;		//总计在线时长
	private int isOnline;		//是否在线
	private int isdelete;		//是否注销帐号(删除)
	private int isactive;		//是否激活帐号
	
	public User() {  //无參构造方法
		super();
	}

	public User(int id, String email, String pass, String photo,
			String question, String answer, int point, String regtime,
			int currentTank, int lastTank, String profession, String sex,
			String birthdate, String ip, int onlineTime, int isOnline,
			int isdelete, int isactive) {									//全參构造方法
		super();
		this.id = id;
		this.email = email;
		this.pass = pass;
		this.photo = photo;
		this.question = question;
		this.answer = answer;
		this.point = point;
		this.regtime = regtime;
		this.currentTank = currentTank;
		this.lastTank = lastTank;
		this.profession = profession;
		this.sex = sex;
		this.birthdate = birthdate;
		this.ip = ip;
		this.onlineTime = onlineTime;
		this.isOnline = isOnline;
		this.isdelete = isdelete;
		this.isactive = isactive;
	}
	
	public User( String email, String pass, String regtime) {	//只有name,email,pass以及regtime的构造方法
		super();
		this.email = email;
		this.pass = pass;
		this.regtime = regtime;
	}
	
	public User(String email, String pass) {		//只有邮箱和密码的构造方法
		super();
		this.email = email;
		this.pass = pass;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public String getRegtime() {
		return regtime;
	}

	public void setRegtime(String regtime) {
		this.regtime = regtime;
	}

	public int getCurrentTank() {
		return currentTank;
	}

	public void setCurrentTank(int currentTank) {
		this.currentTank = currentTank;
	}

	public int getLastTank() {
		return lastTank;
	}

	public void setLastTank(int lastTank) {
		this.lastTank = lastTank;
	}

	public String getProfession() {
		return profession;
	}

	public void setProfession(String profession) {
		this.profession = profession;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(String birthdate) {
		this.birthdate = birthdate;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(int onlineTime) {
		this.onlineTime = onlineTime;
	}

	public int getIsOnline() {
		return isOnline;
	}

	public void setIsOnline(int isOnline) {
		this.isOnline = isOnline;
	}

	public int getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(int isdelete) {
		this.isdelete = isdelete;
	}

	public int getIsactive() {
		return isactive;
	}

	public void setIsactive(int isactive) {
		this.isactive = isactive;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", email=" + email
				+ ", pass=" + pass + ", photo=" + photo + ", question="
				+ question + ", answer=" + answer + ", point=" + point
				+ ", regtime=" + regtime + ", currentTank=" + currentTank
				+ ", lastTank=" + lastTank + ", profession=" + profession
				+ ", sex=" + sex + ", birthdate=" + birthdate + ", ip=" + ip
				+ ", onlineTime=" + onlineTime + "]";
	}

}





